#pragma once
#include "Text/TextSpan.hpp"

#include <memory>
#include <string>
class Diagnostic
{
public:
  Diagnostic(TextSpan span, std::string message)
      : Span(span), Message(message) {}

  virtual std::string ToString() const { return this->Message; }

public:
  TextSpan Span;
  std::string Message;
};
typedef std::shared_ptr<Diagnostic> SharedDiagnostic;